package com.quikin.web.controller.util;

import com.von.platform.dk.util.PDKRuntimeException;

public class QuikinAPException extends PDKRuntimeException {

    /**
     * 
     */
    private static final long serialVersionUID = -4445655095123871271L;

    private static final String _QUIKIN_AP_SYSTEMID = "QUIKIN_AP";
    public static final String DEFAULT_BUNDLE_NAME = "resource.i18n.QuikinAPError";

    public QuikinAPException(QuikinAPErrorCode errCode, Object[] parameters, Throwable cause) {
        super(_QUIKIN_AP_SYSTEMID,errCode.toString(),errCode.getSeverity().toString(),parameters, cause);
    }
    
    public QuikinAPException(QuikinAPErrorCode errCode, Object[] parameters) {
        this(errCode, parameters, null);
    }
    
    public QuikinAPException(QuikinAPErrorCode errCode) {
        this(errCode, null, null);
    }

    @Override
    protected String getDefaultBundleName() {
        return DEFAULT_BUNDLE_NAME;
    }

}
